package Java8实战._2_Stream_使用流._2_映射;

import java.util.Arrays;
import java.util.List;

public class _3_测试1 {

    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1,2,3,4,5);

        list.stream()
                .map(i -> i * i)
                .forEach(i -> System.out.print(i + " "));


    }


}
